#ifndef __BH1750_H__
#define __BH1750_H__
#include "gd32f30x.h"

#define ENABLE_BH1750 0

#define BH_ADDRESS_WRITE        0x46
#define BH_ADDRESS_READ         0x47 
#define BH_POWER_DOWN           0x00 
#define BH_POWER_ON             0x01 
#define BH_RESET                0x07 
#define BH_HMODE_RESOLUTION     0x10 
#define BH_HMODE2_RESOLUTION    0x11 
#define BH_LMODE_RESOLUTION     0x13 
#define BH_SINGLE_HMODE         0x20
#define BH_SINGLE_HMODE2        0x21 
#define BH_SINGLE_LMODE         0x23 

int init_bh1750();
int get_light_value(uint16_t *light_value);
#endif